package com.itheima.jicheng2;

public class Test {

    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.show();
    }
}
class Fu{
    public void sing(){
        System.out.println("父类的sing方法");
    }
}
class Zi extends Fu{
    public void sing(){
        System.out.println("子类的sing方法");
    }
    public void show(){
        //先调用子类
       this.sing();
        //再调用父类
        super.sing();
    }

}
